<template>
  <div class="pwd_container">
    aa
    <!-- <div class="pwd_box">
      <img class="avator" src="../assets/imgs/pwduser.png" alt="" />
      <div class="text">
        <p>请输入密码</p>
        <p>确认您的身份</p>
      </div>
      <div class="input">
        <input v-model="value" type="text" />
      </div>
      <div class="submit" @click="subpwd">
        <img src="../assets/imgs/submitbtn.png" alt="" />
      </div>
      <div class="close" @click="close"></div>
    </div> -->
  </div>
</template>

<script>
export default {
  // 组件名称
  name: 'Pwd',
  // 组件参数 接收来自父组件的数据
  props: {
    // show: {
    //   type: Boolean,
    //   default: false
    // }
  },
  // 局部注册的组件
  components: {},
  // 组件状态值
  data () {
    return {
      value: ''
    }
  },
  // 组件初始化
  created () {
  },
  // 组件实例挂载完毕
  mounted () {
  },
  // 组件方法
  methods: {
    subpwd () {
      if (!this.value || this.value !== '123456') {
        return this.$message.error("密码错误")
      }
      console.log(1234)
      window.sessionStorage.setItem('login', true)
      //   this.$emit("updateShow", false)
      //   this.$emit('updateOpen', 1)

    },
    aaa () {

    }
    // close () {
    //   this.$emit("updateShow", false)
    // }
  }
}
</script>

<style scoped lang='less'>
.pwd_container {
  width: 100%;
  height: 100%;
  background-color: black;
  opacity: 0.8;
  .pwd_box {
    position: absolute;
    top: 25%;
    left: 40%;
    width: 1.833333rem /* 352/192 */;
    height: 2.458333rem /* 472/192 */;
    background-image: url(../assets/imgs/pwdbor.png);
    box-sizing: border-box;
    padding-top: 0.3125rem /* 60/192 */;
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    align-items: center;
    .avator {
      width: 0.9375rem /* 180/192 */;
      height: 0.9375rem /* 180/192 */;
      display: block;
    }
    .text {
      p {
        margin: 0;
        padding: 0;
        color: #23cefd;
        font-size: 0.125rem /* 24/192 */;
        text-align: center;
        margin-bottom: 0.052083rem /* 10/192 */;
      }
    }
    input {
      width: 1.041667rem /* 200/192 */;
      height: 0.15625rem /* 30/192 */;
      margin-bottom: 0.104167rem /* 20/192 */;
      font-size: 0.104167rem /* 20/192 */;
      background: #70bfe6;
      outline: none;
      border: 0;
      &:focus {
        outline: none;
      }
    }
    .close {
      position: absolute;
      width: 0.21875rem /* 42/192 */;
      height: 0.21875rem /* 42/192 */;
      right: 0.166667rem /* 32/192 */;
      top: 0.203125rem /* 39/192 */;
      background-color: #fff;
      opacity: 0;
    }
  }
}
</style>
